#include "Udp_Client.hpp"
#include <memory>

static void Usage(std::string proc)
{
    std::cout << "\nUsage:\n\t" << proc << " ip port\n" << std::endl;
}

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(USAGE_FAIL);
    }

    std::unique_ptr<UdpClient> up_ucli(new UdpClient(argv[1], std::stoi(argv[2])));
    up_ucli->InitClient();
    up_ucli->Start();
    
    return 0;
}